X
You can use fs.unlink to delete a file off your server. This method takes two arguments,
The path - the path to the file you want to delete.
The callback - this callback takes an error object as an argument.
Chris is a Javascript developer with a minor in UI design. He values programming in vanilla code. Fill out the form below to contact him.